package Dispatcher;

public class ElevatorStatus {
	private int id;
	private int state;
	private int currentFloor;
	private int nextDest;
	private int direction;
	private int destinationCount;

	public ElevatorStatus(int id, int state, int currentFloor, int nextFloor,
			 int direction, int destinationCount) {
		this.id = id;
		this.currentFloor = currentFloor;
		this.nextDest = nextFloor;
		this.state = state;
		this.direction = direction;
		this.destinationCount = destinationCount;
	}

	@Override
	public String toString() {
		return "Update - I:" + this.id + " " +
			   "S:" + this.state + " " +
			   "CF: " + this.currentFloor + " " +
			   "NF: " + this.nextDest + " " +
			   "D: " + this.direction;
				
	}
	
	public int getId() {
		return id;
	}

	public int getCurrentFloor() {
		return currentFloor;
	}

	public int getNextDest() {
		return nextDest;
	}

	public int getDestinationCount() {
		return destinationCount;
	}

	public int getDirection() {
		return direction;
	}

	public int getState() {
		return state;
	}
}
